package com.black.basetest;

public class Test3 {

	public static void main(String[] args) {
		int a[]={20,10,50,40,30,70,60,80,90,100};
		int change=0;
		int j=0;
		for(j=0;j<10;j++){
			for(int i=0;i<9-j;i++){
				if(a[i]<a[i+1]){
					change=a[i];
					a[i]=a[i+1];
					a[i+1]=change;
				}
			}
		}
		for(int i=0;i<10;i++){
			System.out.println(a[i]+",");
		}
	}

}
